package com.xiashitech.interfaces.apiservice.dto.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import java.util.List;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Column {
    /**
     * 列名
     */
    private String colName;

    /**
     * 列的tag
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<Tag> colTags;

    /**
     * 列权限
     */
    @Builder.Default
    private Boolean colAuth = Boolean.FALSE;

    /**
     * 列权限鉴权原因
     */
    private String colAuthReason;

    /**
     * 列权限的执行行为
     */
    private List<AuthDesenseAction> authDesenseActions;
}
